<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>组件</title>
	</head>
	<body>
		<div id="app">
			<button-count></button-count>
		</div>



		<script type="text/javascript" src="js/vue.js">
 
		</script>
		<script>
			Vue.component('button-count', {
				template: '<button v-on:click="count++"> You clicked me {{ count }} times.</button>'
			})
			var vue = new Vue({
				el: '#app',
				data: function() {
					return {
						count: 0
					}
				}
			})
		</script>
	</body>
</html>
